﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.YiDongYuan
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2021-06-17 12:16
    /// 描 述：用户实体类
    /// </summary>
    [Table("smbms_user")]
    public class SmbmsUserEntity : BaseEntity
    {
        /// <summary>
        /// 用户编码
        /// </summary>
        /// <returns></returns>
        public string userCode { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        /// <returns></returns>
        public string userName { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        /// <returns></returns>
        public string userPassword { get; set; }
        /// <summary>
        /// 性别（1:女、 2:男）
        /// </summary>
        /// <returns></returns>
        public int? gender { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? birthday { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        /// <returns></returns>
        public string phone { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        /// <returns></returns>
        public string address { get; set; }
        /// <summary>
        /// 用户角色（取自角色表-角色id）
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? userRole { get; set; }
        /// <summary>
        /// 创建者（userId）
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? createdBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? creationDate { get; set; }
        /// <summary>
        /// 更新者（userId）
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? modifyBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? modifyDate { get; set; }
        /// <summary>
        /// 上传个人证件照存储路径
        /// </summary>
        /// <returns></returns>
        public string idPicPath { get; set; }
        /// <summary>
        /// 上传个人工作证照片存储路径
        /// </summary>
        /// <returns></returns>
        public string workPicPath { get; set; }
    }
}
